home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagg-m
/
misc.swg
/
0014_REBOOT3.PAS.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
350 b
|
20 lines
{
REYNIR STEFANSSON
For anyone wondering how to reboot a PClone from Within Turbo Pascal:
The Inline code is a far jump to the restart vector at $FFFF:0.
}
Procedure ColdStart;
begin
MemW[$40:$72] := 0;
Inline($EA/0/0/$FF/$FF);
end;
Procedure WarmStart;
begin
MemW[$40:$72] := $1234;
Inline($EA/0/0/$FF/$FF);
end;